<?php
	class CleanCode{
		private $val1;
		private $val2;
		public function __construct(){
			$this->val1 = array('Ö' ,'Ä' ,'Ü' ,'ö' ,'ä' ,'ü' ,'ß' ,'€'    , '/'      ,'&'     ,'%'        ,'@'   ,'+'     ,'*'         ,'!'            ,' ');
			$this->val2 = array('-Oe-','-Ae-','-Ue-','-oe-','-ae-','-ue-','-ss-','-euro-', '-slash-','--and-','-percent-','-at-','-plus-','-asterisk-','-exclamation-','-');
		}
		public function Encode($str){                        
			$str = str_replace($this->val1,$this->val2,$str);
                        $str = strtolower($str);
			return $str;
		}
		public function Decode($str){
			$str = str_replace($this->val2,$this->val1,$str);
                        return $str;
		}
	}
?>